<?php
namespace app\api\controller;
use think\Controller;
use think\Db;

class Hotnew extends Controller
{
	
	public function li()
	{

		exit(json_encode(['error'=>1001,'msg'=>'not auth']));

		$data = Db::name('question')->limit(5)->select();

		exit(json_encode(['error'=>0,'msg'=>'success','data'=>$data]));
	}
}